package com.iluwatar;

/**
 * 适配器类。把设备（小精灵滑翔机）的接口适配成用户（Gnome工程师管理者）所期望的工程师接口
 */
public class GnomeEngineer implements Engineer {

    private GoblinGlider glider;

    public GnomeEngineer() {
        glider = new GoblinGlider();
    }

    @Override
    public void operateDevice() {
        glider.attachGlider();
        glider.gainSpeed();
        glider.takeOff();
    }

}
